package com.ankur.fareplease.factory;

import com.ankur.fareplease.model.FareDAO;
import com.ankur.fareplease.strategy.CityTaxiFare;
import com.ankur.fareplease.strategy.impl.MeruCabFare;
import com.ankur.fareplease.strategy.impl.TravelTimeCabFare;
import com.ankur.fareplease.strategy.impl.WingsCabFare;

public class TaxiCityFareFactory {

	public static CityTaxiFare getCityFare(FareDAO fareDAO) {
		String cabService = fareDAO.getCabService();
		if (cabService.equals("Meru Radio Cab")) {
			return new MeruCabFare();
		} else if (cabService.equals("Wings Radio Cab")) {
			return new WingsCabFare();
		} else if (cabService.equals("Travel Time")) {
			return new TravelTimeCabFare();
		}
		return null;
	}

}
